﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Jemgine.Engine.Scripts
{
    [Category("Sound"), Node]
    public class PlaySound : Data.ScriptNode
    {
        public String Sound { get; set; }

        public PlaySound()
        {
            AddInput("Play", null);
            AddOutput("Relay", null);
        }

        public override void FireTerminal(int InputID, Data.ScriptPayload Payload)
        {
            OutputTerminals[0].Fire(Payload);
        }
    }
}